<template>
  <div>
    <el-table :data="tableData" ref="table" style="width: 100%">
      <el-table-column prop="name" label="姓名" editable> </el-table-column>
      <el-table-column prop="age" label="年龄" editable>
        <template slot-scope="scope">
          <div @click="isclick(scope.row)">点击测试</div>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        { name: "张三", age: 30 },
        { name: "李四", age: 25 },
        { name: "王五", age: 28 },
      ],
    };
  },
  methods: {
    isclick(text) {},
  },
};
</script>
